package com.lebang.feign.fallback;

import com.lebang.feign.SleepEarnedFeign;
import com.lebang.model.RequestUserInfo;
import com.lebang.model.back.Result;
import com.lebangweb.response.JsonData;
import org.springframework.stereotype.Component;

import static com.lebang.feign.draw.CommonFallBack.FAIL_JSON;
import static com.lebang.feign.draw.CommonFallBack.FAIL_RESULT;

/**
 * @Author: hwq
 * @Date: 2020/3/24 11:47
 * @Version 1.0
 */
@Component
public class SleepEarnedFallback implements SleepEarnedFeign {
    @Override
    public JsonData info(RequestUserInfo request) {
        return FAIL_JSON;
    }

    @Override
    public JsonData star(RequestUserInfo request) {
        return FAIL_JSON;
    }

    @Override
    public JsonData end(RequestUserInfo request, Integer id) {
        return FAIL_JSON;
    }

    @Override
    public Result<Integer> rise(RequestUserInfo request, Integer id) {
        return FAIL_RESULT;
    }


}
